package com;

import cn.edu.scau.biubiusuisui.annotation.FXScan;
import cn.edu.scau.biubiusuisui.config.FXPlusApplication;
import com.sun.javafx.webkit.WebConsoleListener;
import javafx.application.Application;
import javafx.stage.Stage;

/*
 * @author: Ricky
 * @date: 2020-8-15 10:58
 */
@FXScan(base = {"com"})
public class Main extends Application {
    @Override
    public void start(Stage primaryStage) throws Exception {
        WebConsoleListener.setDefaultListener((webView, message, lineNumber, sourceId) -> System.out.println(message + "  [" + sourceId + ":" + lineNumber + "] "));

        FXPlusApplication.start(Main.class);
    }
}
